public class Teacher implements IVistable{

    private String teacherName;

    private String teacherNo;

    @Override
    public String accept(IVisitor visitor) {
        return visitor.visit(this);
    }

    public String getTeacherName() {
        return teacherName;
    }

    public void setTeacherName(String teacherName) {
        this.teacherName = teacherName;
    }

    public String getTeacherNo() {
        return teacherNo;
    }

    public void setTeacherNo(String teacherNo) {
        this.teacherNo = teacherNo;
    }
}
